package oop;

public class BasePlusSalesEmployee extends SalesEmployee{
    private double baseSalary;
    public BasePlusSalesEmployee(String name,int birthmonth,double monlysales,double commisionrate,double baseSalary){
        super(name,birthmonth,monlysales,commisionrate);
         this.baseSalary=baseSalary;
    }
    public double getBaseSalary(){
        return baseSalary;
    }
    public double setBaseSalary(double baseSalary){
        this.baseSalary=baseSalary;
        return baseSalary;
    }
    @Override
    public double getSalary(int month){
        return super.getSalary(month)+baseSalary;
    }
}
